<extend name="Public/layout"/>
<block name="head">
<link rel="stylesheet" href="__PUBLIC__css/unbind-bankcard.css">
<style type="text/css">
.footer{
    display: none;
}
</style>
</block>
<block name="main">
    <div class="form">
        <div class="form-group">
            <input type="text" id="idcard" placeholder="请输入您的身份证号码">
        </div>
    </div>
    <div class="btn-wrapper">
        <a href="javascript:" onClick="sub()">下一步</a>
    </div>
</block>
<block name="js">
<script type="text/javascript">
function sub(){
    var idcard = $('#idcard').val()
    $.post('{:U("Person/unbind_bank_first")}',{
        idcard:idcard,
    },function(res){
        if(res.err==0){
            location.href="/Home/Person/unbind_bank_end"
        }else{
            layer.open({
                content:"身份证号码输入错误！"
                ,skin: 'msg'
                ,time: 1 //2秒后自动关闭
            });
        }
    })
}
</script>
</block>